-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't reset retirement_requester after end of retirement #18325
Don't reset retirement_requester after end of retirement #18325
Conversation
@miq-bot add_label bug, blocker |
@miq-bot add_label hammer/yes |
f787282
to
f4eb967
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
The one thing I would suggest, in a followup PR, is to update the #mark_retired
tests to use a Timecop.freeze
block around the retires_on
date check instead of testing against a large time range.
For example, the check
expect(@service.retires_on).to be_between(Time.zone.now - 1.hour, Time.zone.now + 1.second)
Should really be an exact match if time is frozen.
This currently happens in all three specs being updated here.
@d-m-u Looks good. |
Don't reset retirement_requester after end of retirement (cherry picked from commit 2547cca) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1638502
Hammer backport details:
|
Can we get this backported to g for https://bugzilla.redhat.com/show_bug.cgi?id=1641812, please? |
🦃 🐌 🐍 🗡 |
@d-m-u Tried backporting to gaprindashvili branch, but entire file is show up as conflicting for |
@simaishi Yes ma'am, just a minute. |
Backported to Gaprindashvili via #18376 |
Because we have a column name and a method name that are equivalent, finish_retirement used to reset the retirement_requester to nil. Changing the method to call a different method that only sets the field name prevents this from being reset to nil at the end.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1638502